home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / utilities / boot / magicscrip.lha / MagicScripts / MagicView.sh < prev    next >
Encoding:
Text File  |  1995-01-15  |  1.1 KB  |  42 lines

  1. # MagicView for ToolManager using CSH.
  2. # Can be used by DOCKs, APPICONs or CLI
  3. # $VER: MagicView 1.0 14/1/95 Jonathan Benson
  4.  
  5. csh:class
  6.  
  7. if -n $_passed
  8.     set MagicDir :
  9.     set MagicFile ""
  10.     label request
  11.     set _passed =  @filereq( "Please select the file(s)" $MagicDir"#?" $MagicFile )
  12.     set MagicDir  @dirname( ""$_passed"" )/
  13.     set MagicFile  @basename( ""$_passed"" )
  14.     set MagicRep true
  15. else
  16.     set MagicRep false
  17. endif
  18.  
  19. if -n $_passed = ""
  20.     v $_passed
  21.     if $MagicRep = true
  22.         goto request
  23.         endif
  24. endif
  25.  
  26. label end
  27. return
  28.  
  29. # Thanks to Magnus Holmgren for creating the wonderful
  30. # ReqChange.
  31. # and to Nico François for his superb ReqTools library,
  32. # and of course lets not forget Stefan Boberg.
  33. # And to Stefan Becker for ToolManager.
  34. # And to the guy who wrote UnLha who inspired this
  35. # little script. (sorry I couldn't see your name anywhere)
  36. # And of course to the following for CShell:
  37. #     Shell V2.04 (C)Copyright 1986, Matthew Dillon, All Rights Reserved
  38. #     Shell V2.04M-V2.07M by Steve Drew
  39. #     Shell V2.08MI, V3.xxA and V4.xxA by Carlo Borreo & Cesare Dieni
  40. #     Shell V5.xxL by U. Dominik Mueller
  41. #     Shell V5.20+ by Andreas M. Kirchwitz
  42.